USE [BillManage]
GO
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[Base_PropertyDown](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[FName] [varchar](100) NOT NULL,
	[FCName] [varchar](50) NULL,
	[FQty] [decimal](18, 2) NULL,
	[FPrice] [decimal](18, 2) NULL,
	[FDays] [int] NULL,
	[FType] [int] NOT NULL,
 CONSTRAINT [PK_Base_PropertyDown] PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

ALTER TABLE [dbo].[Base_PropertyDown] ADD  CONSTRAINT [DF_Base_PropertyDown_FQty]  DEFAULT ((0)) FOR [FQty]
GO

ALTER TABLE [dbo].[Base_PropertyDown] ADD  CONSTRAINT [DF_Base_PropertyDown_FPrice]  DEFAULT ((0)) FOR [FPrice]
GO

ALTER TABLE [dbo].[Base_PropertyDown] ADD  CONSTRAINT [DF_Base_PropertyDown_FDays]  DEFAULT ((0)) FOR [FDays]
GO

ALTER TABLE [dbo].[Base_PropertyDown] ADD  CONSTRAINT [DF_Base_PropertyDown_FType]  DEFAULT ((0)) FOR [FType]
GO

